export const KEY = "speci";
const HUI_XIAN_KEY='origin_speci';
export function getSpecis() {
    var jsonString = sessionStorage.getItem(KEY);
    jsonString = jsonString || '{}';
    return JSON.parse(jsonString);
}

export function setSpecis(form) {
    removeSpeci();
    sessionStorage.setItem(KEY,JSON.stringify(form));
}

export function removeSpeci() {
    sessionStorage.removeItem(KEY);
}

export function getHuiXianSpecis() {
    var jsonString = sessionStorage.getItem(HUI_XIAN_KEY);
    jsonString = jsonString || '{}';
    return JSON.parse(jsonString);
}

export function setHuiXianSpecis(form) {
    removeHuiXianSpeci();
    sessionStorage.setItem(HUI_XIAN_KEY,JSON.stringify(form));
}

export function removeHuiXianSpeci() {
    sessionStorage.removeItem(HUI_XIAN_KEY);
}